/* =============================================================================
   HTML5 CSS Reset Minified - Eric Meyer
   ========================================================================== */

html,body,div,span,object,iframe,h1,h2,h3,h4,h5,h6,p,blockquote,pre,abbr,address,cite,code,del,dfn,em,img,ins,kbd,q,samp,small,strong,sub,sup,var,b,i,dl,dt,dd,ol,ul,li,fieldset,form,label,legend,table,caption,tbody,tfoot,thead,tr,th,td,article,aside,canvas,details,figcaption,figure,footer,header,hgroup,menu,nav,section,summary,time,mark,audio,video{margin:0;padding:0;border:0;outline:0;font-size:100%;vertical-align:baseline;background:transparent}
body{line-height:1}
article,aside,details,figcaption,figure,footer,header,hgroup,menu,nav,section{display:block}
nav ul{list-style:none}
blockquote,q{quotes:none}
blockquote:before,blockquote:after,q:before,q:after{content:none}
a{margin:0;padding:0;font-size:100%;vertical-align:baseline;background:transparent;text-decoration:none}
mark{background-color:#ff9;color:#000;font-style:italic;font-weight:bold}
del{text-decoration:line-through}
abbr[title],dfn[title]{border-bottom:1px dotted;cursor:help}
table{border-collapse:collapse;border-spacing:0}
hr{display:block;height:1px;border:0;border-top:1px solid #ccc;margin:1em 0;padding:0}
input,select{vertical-align:middle}
li{list-style:none}


/* =============================================================================
   My CSS
   ========================================================================== */

/* ---- base ---- */

html,body{ 
	width:100%;
	height:100%;
}

html{
  -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
}

body{
  font:normal 75% Arial, Helvetica, sans-serif;
}

canvas{
  display:block;
  vertical-align:bottom;
}



/*自定义文档主题*/
/*header部分*/
.c-header{
  position: relative;
  width: 100%;
  height: auto;
}

.c-header .background{
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #b61924;
  background-size: cover;
  background-position: 50% 50%;
  background-repeat: no-repeat;
  z-index: -1;
}

.c-header .content{
  padding: 80px 80px 20px 80px;
  box-sizing: border-box;
  background-image:linear-gradient(45deg, rgba(0,0,0,0.3) 0%, rgba(255,255,255,0.0) 50%);
}

.c-header .title{
  text-align: center;
  font-size: 60px;
  color: #ffffff;
}
.c-header .describe{
  margin: 20px auto;
  text-align: center;
  font-size: 20px;
  color: #ffffff;
  line-height: 30px;
  width: 60%;
  opacity: 0.7;
}

.c-header .btns{
  display: flex;
  flex-direction: row;
  width: 400px;
  margin: auto;
}

.c-header .btn{
  color: rgba(255, 255, 255, 0.7);
  background-color: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.2);
  border-style: solid;
  border-width: 1px;
  border-radius: 0.3rem;
  transition: color 0.2s, background-color 0.2s, border-color 0.2s;
  padding: 10px;
  font-size: 20px;
  flex: 1;
  margin: 3px;
  outline: none;
  text-align: center;
}
.c-header .btn:hover {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  background-color: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.3);
}
/*内容*/
body{
  background: #fff;
  font-size: 14px;
  font-family: -apple-system, system-ui, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}
.c-content{
  max-width: 800px;
  padding: 10px;
  margin: auto;
}

.c-content .example{
  margin-bottom: 20px;
  overflow-y: hidden;
  border-bottom: 1px solid #eee;
}
.c-content .example .title{
  font-size: 30px;
  margin-top: 20px;
  margin-bottom: 10px;
  font-family: inherit;
  font-weight: 500;
  line-height: 1.1;
  color: inherit;

}
.c-content .example .describe{
  line-height: 1.75;
  margin: 0 0 10px;
}


.c-content .example .selector{
  margin-bottom: 1rem;
  background-color: rgba(255, 255, 255, 0.08);
  border-color: rgba(0, 0, 0, 0.2);
  border-style: solid;
  border-width: 1px;
  border-radius: 0.3rem;
  transition: color 0.2s, background-color 0.2s, border-color 0.2s;
  padding: 10px;
  width: auto;
  display: block;
  cursor: pointer;
  position: relative;
}
.c-content .example .selector:empty::before{
  color: #999;
  content: attr(placeholder);
}
.c-content .example .selector::after{
  position: absolute;
  right: 10px;
  top:12px;
  width: 10px;
  height: 10px;
  content: "";
  display: block;
  border: solid;
  border-width: 0 0 2px 2px;
  border-color: #000;
  transform: rotate(-45deg);
}
.c-content .example .selector:hover {
  text-decoration: none;
  background-color: rgba(255, 255, 255, 0.2);
  border-color: rgba(0, 0, 0, 0.3);
}
.c-content .example .code{
  border: 1px solid #eee;
  border-radius: 3px;
  padding: 10px;
  white-space: pre;
  overflow-y: hidden;
  background: #ddd;
}

@media screen and (max-width: 768px){
  .c-header .content{
    padding: 40px 10px 10px 10px;
  }

  .c-header .title{
    font-size: 30px;
  }
  .c-header .describe{
    width: auto;
    font-size: 15px;
  }

  .c-header .btns{
    flex-direction: column;
    max-width: 90vw;
  }

  .c-content .example .title{
    font-size: 20px;
  }
}